package com.cloud.exception;

/**
 * 登录异常定义
 *
 * @author yzj
 */
public class LoginException extends BaseException {

    public static final LoginException TOKEN_IS_EMPTY = new LoginException(411, "未认证的请求:令牌/CODE不能为空");
    public static final LoginException INVALID_TOKEN = new LoginException(412, "未认证的请求:令牌已过期或验证失败");
    public static final LoginException INVALID_VERIFY_FAIL = new LoginException(413, "未认证的请求:令牌验证失败");
    public static final LoginException USER_NO_AUTHORITY = new LoginException(414, "认证失败:账户权限不足");
    public static final LoginException TOKEN_PARSE_ERROR = new LoginException(415, "认证失败:TOKEN解析异常");
    public static final LoginException USER_NO_LOGIN_INVALID = new LoginException(416, "认证失败:令牌已过期或账户未登录");

    public static final LoginException CODE_IS_EMPTY = new LoginException(421, "认证失败:验证码不能为空");
    public static final LoginException CODE_MISTAKE = new LoginException(422, "认证失败:验证码不存在或错误");
    public static final LoginException USER_INFO_DELETED = new LoginException(423, "认证失败:用户信息已删除");
    public static final LoginException USER_INFO_DISABLE = new LoginException(424, "认证失败:用户信息已停用");

    public static final LoginException SYS_AUTH_NOT_FIND = new LoginException(431, "认证失败:授权系统信息未指定");
    public static final LoginException DATA_SIGN_ERROR = new LoginException(432, "认证失败:验证数据签名失败");

    private static final long serialVersionUID = 1L;

    public LoginException() {
        super();
    }

    public LoginException(Integer code, String msg, Object... args) {
        super(code, msg, args);
    }
}
